﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcSDK.Domain
{
    /// <summary>
    /// 原辅料批号信息表
    /// </summary>
    [Serializable]
    public partial class AT_MaterialBatchInfo
    {
        public AT_MaterialBatchInfo()
        { }
        #region Model
        private long _id = 0;
        private long _companyid = 0;
        private DateTime _createtime = DateTime.Now;
        private long _createby = 0;
        private DateTime _updatetime = DateTime.Now;
        private long _updateby = 0;
        private int _status = 0;
        private string _wlcode = "";
        private string _wlname = "";
        private decimal _netcontent = 0M;
        private string _format = "";
        private string _standardcode = "";
        private DateTime _madedate = DateTime.Now;
        private string _qperiod = "";
        private string _madeaddr = "";
        private DateTime _intime = DateTime.Now;
        private string _batchno = "";
        private string _enname = "";
        private string _enaddr = "";
        private string _contact = "";
        private string _enhttp = "";
        private string _ennumber = "";
        private string _outcheckrpt = "";
        private string _incheckrpt = "";
        private string _nonconfrec = "";
        private string _remark = "";
        /// <summary>
        /// 
        /// </summary>
        public long Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long CompanyId
        {
            set { _companyid = value; }
            get { return _companyid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long CreateBy
        {
            set { _createby = value; }
            get { return _createby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long UpdateBy
        {
            set { _updateby = value; }
            get { return _updateby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Wlcode
        {
            set { _wlcode = value; }
            get { return _wlcode; }
        }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string WlName
        {
            set { _wlname = value; }
            get { return _wlname; }
        }
        /// <summary>
        /// 净含量
        /// </summary>
        public decimal NetContent
        {
            set { _netcontent = value; }
            get { return _netcontent; }
        }
        /// <summary>
        /// 原料规格
        /// </summary>
        public string Format
        {
            set { _format = value; }
            get { return _format; }
        }
        /// <summary>
        /// 原料标准代号
        /// </summary>
        public string StandardCode
        {
            set { _standardcode = value; }
            get { return _standardcode; }
        }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime MadeDate
        {
            set { _madedate = value; }
            get { return _madedate; }
        }
        /// <summary>
        /// 保质期
        /// </summary>
        public string Qperiod
        {
            set { _qperiod = value; }
            get { return _qperiod; }
        }
        /// <summary>
        /// 生产地
        /// </summary>
        public string MadeAddr
        {
            set { _madeaddr = value; }
            get { return _madeaddr; }
        }
        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime InTime
        {
            set { _intime = value; }
            get { return _intime; }
        }
        /// <summary>
        /// 入库批次
        /// </summary>
        public string BatchNo
        {
            set { _batchno = value; }
            get { return _batchno; }
        }
        /// <summary>
        /// 企业名称
        /// </summary>
        public string EnName
        {
            set { _enname = value; }
            get { return _enname; }
        }
        /// <summary>
        /// 企业地址
        /// </summary>
        public string EnAddr
        {
            set { _enaddr = value; }
            get { return _enaddr; }
        }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string Contact
        {
            set { _contact = value; }
            get { return _contact; }
        }
        /// <summary>
        /// 企业网址
        /// </summary>
        public string EnHttp
        {
            set { _enhttp = value; }
            get { return _enhttp; }
        }
        /// <summary>
        /// 企业营业执照编号
        /// </summary>
        public string EnNumber
        {
            set { _ennumber = value; }
            get { return _ennumber; }
        }
        /// <summary>
        /// 出厂检验报告
        /// </summary>
        public string OutCheckRpt
        {
            set { _outcheckrpt = value; }
            get { return _outcheckrpt; }
        }
        /// <summary>
        /// 验收检验报告
        /// </summary>
        public string InCheckRpt
        {
            set { _incheckrpt = value; }
            get { return _incheckrpt; }
        }
        /// <summary>
        /// 不合格原料处置记录
        /// </summary>
        public string NonConfRec
        {
            set { _nonconfrec = value; }
            get { return _nonconfrec; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        #endregion Model




        #region ExModel
        //产品名称
        private string _productcode = "";
        public string ProductName { get; set; }
        public long ProductId { get; set; }
        public int BacthNoId { get; set; }
        public string FromBatchNo { get; set; }
        public string ProductCode
        {
            set { _productcode = value; }
            get { return _productcode; }
        }
        public string WlType { get; set; }
        #endregion
    }
}
